package com.sss.dao;

import com.sss.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    Integer insertOne(@Param("goods") Goods goods);
    Integer updateOne(@Param("goods") Goods goods);

    List<Goods> select();
    Goods selectOne(@Param("goodsname") String goodsname, @Param("id") Integer id);
    Integer selectTotal(@Param("goodsname") String goodsname);
    Integer delete(@Param("id")Integer id );
}
